package com.kingint.web.portal.base.controller;


import com.kingint.common.unitedresult.K;
import com.kingint.mbg.bas.entity.BasWorkOrderType;
import com.kingint.web.portal.base.service.WorkOrderTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * @描述：工单类型表控制类
 * @作者: wxh
 * @日期: 2020-12-21
 */
@RestController
@RequestMapping("/WorkOrderType")
@Api(value = "BasWorkOrderTypeController", description = "工单类型表")
@CrossOrigin
public class WorkOrderTypeController {

    @Autowired
    public WorkOrderTypeService basWorkOrderTypeService;


    @ApiOperation(value = "根据工单类型表名称分页获取工单类型表列表")
    @GetMapping("/list")
    public Object getList() {
        List<BasWorkOrderType> list = basWorkOrderTypeService.list(null);
        return K.ok().data(list);
    }
}